﻿<UserControl x:Class="SharpTalk.Client.WpfApplication.Controls.UserListView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:Controls="clr-namespace:SharpTalk.Client.WpfApplication.Controls"
             mc:Ignorable="d" 
             d:DesignHeight="301" d:DesignWidth="192">
    <Grid>
        <Border CornerRadius="5" Margin="2" BorderThickness="1" BorderBrush="Silver">
            <ListBox
                Style="{StaticResource UserListStyle}"
                ItemContainerStyle="{StaticResource UserListItemStyle}"
                ItemsSource="{Binding Users, RelativeSource={RelativeSource AncestorType=Controls:UserListView}}"
                IsSynchronizedWithCurrentItem="True"
                HorizontalContentAlignment="Stretch">
            </ListBox>
        </Border>
    </Grid>
</UserControl>
